package csc.daonjpa.java.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Controller for home action.
 * @author tnguyen256
 *
 */
@Controller
public class HomeController {
	@RequestMapping(value = {"/", "login"})
	public ModelAndView getLogin(Model model) {
		return new ModelAndView("login");
	}
	@RequestMapping(value = {"home"})
	public ModelAndView getHome(Model model) {
		return new ModelAndView("home");
	}
}
